<html>
<head><meta charset="utf-8"><title>x.py --warnings warn · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/x.2Epy.20--warnings.20warn.html">x.py --warnings warn</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="209792518"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/x.py%20--warnings%20warn/near/209792518" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/x.2Epy.20--warnings.20warn.html#209792518">(Sep 11 2020 at 15:07)</a>:</h4>
<p>I'm running <code>../../x.py --warnings warn --stage 2 test --verbose --verbose --verbose --verbose --verbose --verbose --verbose --verbose --verbose --warnings warn 2&gt;&amp;1 | tee build.log</code> but I still get:</p>
<div class="codehilite"><pre><span></span><code>error: hidden lifetime parameters in types are deprecated
   --&gt; silicon/cc-rs/src/lib.rs:166:27
    |
166 |     fn fmt(&amp;self, f: &amp;mut fmt::Formatter) -&gt; fmt::Result {
    |                           ^^^^^^^^^^^^^^- help: indicate the anonymous lifetime: `&lt;&#39;_&gt;`
    |
    = note: `-D elided-lifetimes-in-paths` implied by `-D warnings`
</code></pre></div>


<p><span class="user-mention" data-user-id="116122">@simulacrum</span>, this worked previously ( a month or so ago). Any idea what I'm missing?</p>



<a name="209792584"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/x.py%20--warnings%20warn/near/209792584" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/x.2Epy.20--warnings.20warn.html#209792584">(Sep 11 2020 at 15:08)</a>:</h4>
<p>-vvvvvv works too :)</p>



<a name="209792603"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/x.py%20--warnings%20warn/near/209792603" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/x.2Epy.20--warnings.20warn.html#209792603">(Sep 11 2020 at 15:08)</a>:</h4>
<p>my guess is something isn't respecting --warnings</p>



<a name="209792646"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/x.py%20--warnings%20warn/near/209792646" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/x.2Epy.20--warnings.20warn.html#209792646">(Sep 11 2020 at 15:08)</a>:</h4>
<p>I "know", but I had the long form because I didn't want to set through a 2 hour CI run to discover I "knew" wrong.</p>



<a name="209792663"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/x.py%20--warnings%20warn/near/209792663" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/x.2Epy.20--warnings.20warn.html#209792663">(Sep 11 2020 at 15:08)</a>:</h4>
<p>And then I left it there.</p>



<a name="209792697"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/x.py%20--warnings%20warn/near/209792697" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/x.2Epy.20--warnings.20warn.html#209792697">(Sep 11 2020 at 15:09)</a>:</h4>
<p>hm that is also an odd path</p>



<a name="209792747"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/x.py%20--warnings%20warn/near/209792747" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/x.2Epy.20--warnings.20warn.html#209792747">(Sep 11 2020 at 15:09)</a>:</h4>
<p>can you tell me what that is being built as part of? std?</p>



<a name="209792876"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/x.py%20--warnings%20warn/near/209792876" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/x.2Epy.20--warnings.20warn.html#209792876">(Sep 11 2020 at 15:10)</a>:</h4>
<p>Ah, maybe this:</p>
<div class="codehilite"><pre><span></span><code><span class="gh">diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py</span>
<span class="gh">index 4ab23b40ac3..1cb9f409ffa 100644</span>
<span class="gd">--- a/src/bootstrap/bootstrap.py</span>
<span class="gi">+++ b/src/bootstrap/bootstrap.py</span>
<span class="gu">@@ -741,8 +741,8 @@ class RustBuild(object):</span>
         if target_linker is not None:
             env[&quot;RUSTFLAGS&quot;] += &quot; -C linker=&quot; + target_linker
         env[&quot;RUSTFLAGS&quot;] += &quot; -Wrust_2018_idioms -Wunused_lifetimes&quot;
<span class="gd">-        if self.get_toml(&quot;deny-warnings&quot;, &quot;rust&quot;) != &quot;false&quot;:</span>
<span class="gd">-            env[&quot;RUSTFLAGS&quot;] += &quot; -Dwarnings&quot;</span>
<span class="gi">+#        if self.get_toml(&quot;deny-warnings&quot;, &quot;rust&quot;) != &quot;false&quot;:</span>
<span class="gi">+#            env[&quot;RUSTFLAGS&quot;] += &quot; -Dwarnings&quot;</span>
</code></pre></div>



<a name="209792937"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/x.py%20--warnings%20warn/near/209792937" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/x.2Epy.20--warnings.20warn.html#209792937">(Sep 11 2020 at 15:11)</a>:</h4>
<p>looks like its when built as part of bootstrap itself, which only looks at the TOML file to enable warnings?</p>



<a name="209792938"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/x.py%20--warnings%20warn/near/209792938" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/x.2Epy.20--warnings.20warn.html#209792938">(Sep 11 2020 at 15:11)</a>:</h4>
<p>hm, yes seems likely</p>



<a name="209792965"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/x.py%20--warnings%20warn/near/209792965" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/x.2Epy.20--warnings.20warn.html#209792965">(Sep 11 2020 at 15:11)</a>:</h4>
<p>bootstrap.py doesn't have a warnings flag (yet) I guess</p>



<a name="209793134"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/x.py%20--warnings%20warn/near/209793134" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/x.2Epy.20--warnings.20warn.html#209793134">(Sep 11 2020 at 15:12)</a>:</h4>
<p>The larger context is that I'm patching cc-rs, so I stuck the patch in the top-level Cargo.toml.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>